import { get, post, put } from "../utils/http";
import { IResponse } from "./types";
export function getPhotoGraph() {
  return get<IResponse>({
    url: "/photograph",
  });
}
export function postSearch(
  currentPage: number,
  pageSize: number,
  title: string,
) {
  return post<IResponse>({
    url: `/photograph/tag/search`,
    data: {
      currentPage,
      pageSize,
      title,
    },
  });
}
export function getPage(data: {
  currentPage: number;
  pageSize: number;
  classification?: string;
}) {
  return post<IResponse>({
    url: `/photograph/page`,
    data,
  });
}
